#ifndef _HERO_H_
#define _HERO_H_
#include "cocos2d.h"

USING_NS_CC;

class Hero :public CCNode, public CCTargetedTouchDelegate
{
public:
	Hero();
	~Hero();
	virtual bool init();
	bool inRect(CCPoint t);
	virtual bool ccTouchBegan(CCTouch* touch, CCEvent* event);
	virtual void ccTouchMoved(CCTouch* touch, CCEvent* event);
	virtual void ccTouchEnded(CCTouch* touch, CCEvent* event);

	void setHurt();
	void afterHurt( CCNode* pSender);

	int getBlood(){ return m_blood;  }
	bool isWudi(){ return m_wudi;  }


	CREATE_FUNC(Hero);

private:
	int m_blood;
	bool m_wudi;
	

};



#endif